﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.Specialized;

namespace HDI.Charts2
{
    public class Data : Dictionary<string, string>
    {
        public String Name;
        public Series Serie;

        public Data(Series serie)
        {
            this.Serie = serie;
        }

        public Data setOption(string key, string value)
        {
            if (!this.Keys.Contains(key))
            {
                this.Add(key, value);
               
            }
            else
            {
                this[key] = value;
                
            }
            return this;
        }

    }
}
